package team.xiaobaiya.gptchatrobot.gpt.request;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.List;

/**
 * @ClassName ChatRequestBody
 * @Author Feng Yingnan
 * @Email fengyn1211@163.com
 * @Date 2023/4/6 16:06
 */
@Data
public class ChatRequestBody {
    private static String model = "gpt-3.5-turbo";
    private static boolean stream = true;


    private List<MessageItem> messages;

    @Override
    public String toString() {
        return "{\"model\":\"" + model +"\"," +
                "\"messages\":" + JSON.toJSONString(messages) + "," +
                "\"stream\":"+ stream +"}";
    }
}
